<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>侦听器实际使用方法</title>
</head>
<body>
<div id="app">
    <input type="text" name="wd" id="wd" v-model="info">

</div>

<script src="../../../../../js/vue.global.js"></script>
<script>
    const app = Vue.createApp({
        data() {
            return {
                info: ""
            }
        },
        methods: {},
        computed: {},
        watch: {
            info(value) {
                console.log("当前输入的值：" + value);
            }
        }
    })

    app.mount("#app")
</script>
</body>
</html>